extends PanelContainer

func _ready():
	# 动态创建stylebox
	var stylebox:StyleBoxFlat = StyleBoxFlat.new()
	stylebox.set_border_width_all(10) # 统一设定边线粗细 
	stylebox.set_corner_radius_all(10) # 统一设定圆角尺寸
	stylebox.set_expand_margin_all(10) # 统一设定外边距
	# 内边距
	stylebox.content_margin_bottom = 10
	stylebox.content_margin_left = 10
	stylebox.content_margin_right = 10
	stylebox.content_margin_top = 10
	# 阴影
	stylebox.shadow_size =5
	stylebox.shadow_color = ColorN("blue",0.5)
	stylebox.shadow_offset = Vector2(10,20)
	# 将资源赋值给自定义样式属性
	set("custom_styles/panel",stylebox)
	
	
